package cn.gson.crm.model.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

/**
 * 维修进度记录实体类
 * 
 * @author hzl
 * @date 2018年4月8日
 * @time 下午8:46:29
 */
@Entity
@Table(name = "crm_repair_detail")
public class RepairDetail {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	/**
	 * 维修进度
	 */
	private String progress;
	/**
	 * 时间
	 */
	private Date time;
	/**
	 * 所有者
	 */
	@ManyToOne
	private Employee employee;
	/**
	 * 对应维修单
	 */
	@ManyToOne
	private Repair repair;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getProgress() {
		return progress;
	}
	public void setProgress(String progress) {
		this.progress = progress;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public Employee getEmployee() {
		return employee;
	}
	public void setEmployee(Employee employee) {
		this.employee = employee;
	}
	public Repair getRepair() {
		return repair;
	}
	public void setRepair(Repair repair) {
		this.repair = repair;
	}
	public RepairDetail() {
		// TODO Auto-generated constructor stub
	}
	public RepairDetail(Long id, String progress, Date time, Employee employee, Repair repair) {
		super();
		this.id = id;
		this.progress = progress;
		this.time = time;
		this.employee = employee;
		this.repair = repair;
	}
	public RepairDetail(Long id, String progress, Date time) {
		super();
		this.id = id;
		this.progress = progress;
		this.time = time;
	}
	
}
